package com.leon.android.common.extensions


//
//inline fun <reified T : BaseViewModel> FragmentActivity.getViewModel(): T {
//    return ViewModelProviders.of(this).get(T::class.java)
//}
//
//inline fun <reified T : BaseViewModel> FragmentActivity.getViewModel(viewModelFactory: ViewModelProvider.Factory?): T {
//    return ViewModelProviders.of(this).get(T::class.java)
//}
//
//fun <T : AndroidViewModel> FragmentActivity.getViewModel(clazz: Class<T>, viewModelFactory: ViewModelProvider.Factory?): T {
//    return androidx.lifecycle.ViewModelProviders.of(this, viewModelFactory).get(clazz)
//}